<!DOCTYPE html>
<html lang="en">
	<head>
    	<meta name="layout" content="main_pc">
        <title>火堆工作台</title>       
        <link rel="stylesheet" href="${resource(dir: 'css', file: 'user.center.css')}" type="text/css">
        <link rel="stylesheet" href="${resource(dir: 'css_pc', file: 'project.css')}" type="text/css">
		<script type="text/javascript" src="${resource(dir: 'js', file: 'jquery-1.10.2.js')}"></script>
	    <script type="text/javascript" src="${resource(dir: 'js', file: 'ajaxfileupload.js')}"></script>
    </head>
<body>

	<div class="container-fluid">

		<section class="quick-navi mb20">
			<div class="container">
				<a href="#" class="quick-link"><span>火堆工作台</span><span
					class="caret"></span></a>
				<!--a href="#" class="quick-link">联系我们</a-->
			</div>
		</section>

		<section>
			<div class="container mb50">
				
				<g:render template="navigate"   model="[status: status]"/>
							

				<div class="right-content" id="rightconsole">

                <h1>红包口令</h1>
                <div class="content">
	                <div class="form-item fix-width">
	                <label for="">当前状态 ：${tickets.stats? "打开":"关闭"}<span class="tips"></span></label>
	                <button onclick="window.location.href='/scfire/manage/switchRedEnve'"><g:if test="${tickets.stats}">关闭红包</g:if><g:else>开启红包</g:else></button>
	                </div>
                    <g:form id = "all-form"  action="saveRedEnvelopeTicket" method="post"  id="${tickets.id}" class="form-style3">
                        <div class="form-item ">
                            <label for="">输入红包口令<span class="tips"></span></label>
                            <div class="form-ctrl">
                                <input type="text" name="ticket" value='${tickets.ticket}' />
                            </div>
                        </div>
                        <div class="form-item">
                            <div class="btn-container">
                                <Button class="btn btn-save-all">保存</Button>
                            </div>
                        </div>
                    </g:form>
                    
	                </div>
	            </div>                           
                	
                	
			</div>
			<div class="clearboth"></div>
		</section>


	</div>

	<script type="text/javascript">
	
		$(function() {
			$('ul.nav.navbar-nav li').hover(
					function() {
						console.log($(this).index());
						$(this).siblings('.top-active').addClass(
								'position-' + $(this).index());
					},
					function() {
						$(this).siblings('.top-active').removeClass(
								'position-' + $(this).index());
			});
			//保存
	 		$('.btn-save-all').click(function(){
	 	         $("#all-form").submit();
	 	         
	 	    });
		});

		

	</script>

</body>
</html>